Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow programRuleAction translations [DHIS2-12971] #848

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Dec 14, 2023

See https://dhis2.atlassian.net/browse/DHIS2-12971

In general, we filter items for translation based on name (and also show that name in the card for each object available to translate). However, programRuleActions do not have names, and the only translatable property is content.

I have added in some logic that lets us override name as the default property for search/card title so that programRuleActions can appear in the app.

Before
Doesn't load, you get a snackbar warning of Cannot read properties of undefined (reading 'trim')

After
image

@tomzemp tomzemp requested a review from a team December 14, 2023 13:36
@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-848--dhis2-translations.netlify.app

@tomzemp tomzemp merged commit 400b5d1 into master Dec 15, 2023
11 checks passed
@tomzemp tomzemp deleted the DHIS2-12971/programRuleAction-fix branch December 15, 2023 09:12
dhis2-bot added a commit that referenced this pull request Dec 15, 2023
## [26.2.49](v26.2.48...v26.2.49) (2023-12-15)

### Bug Fixes

* add/handle missing property translations [DHIS2-11316] ([#849](#849)) ([20c79dd](20c79dd))
* allow programRuleAction translations [DHIS2-12971] ([#848](#848)) ([400b5d1](400b5d1))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 26.2.49 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants